package com.soft.line.mapper;

import com.soft.line.entity.LasDepartmentInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LasDepartmentInfoMapper {

    LasDepartmentInfo getDepByRole(@Param("userId") int userId);

    List<LasDepartmentInfo> selectAllSuperior();

    LasDepartmentInfo selectSuperiorDepByDepId(@Param("depId") String depId);

    LasDepartmentInfo selectSuperiorDepByDepName(@Param("depName") String depName);

    //获取上一级部门
    LasDepartmentInfo selectSupDepByDepId(@Param("depId") String depId);
}